/**
 * Write a description of class QueueMessage here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class QueueMessage implements Comparable<QueueMessage>
{
    public String type;
    public Object target;
    public int time;
    
    public QueueMessage(String mtype,Object mtarget,int mtime)
    {
        type=mtype;target=mtarget;time=mtime;
    }
    
    public int compareTo(QueueMessage o)
    {
        return (time-o.time==0)?1:time-o.time;
    }
}